package com.bpf.base.service.system;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bpf.base.dao.system.Role2MenuMapper;
import com.bpf.base.model.system.Role2MenuExample;
import com.bpf.base.model.system.Role2MenuKey;

@Service
@Transactional(rollbackFor = Exception.class)
public class Role2MenuService {

	@Autowired
	private Role2MenuMapper role2MenuMapper;

	public int countByExample(Role2MenuExample example) {

		return role2MenuMapper.countByExample(example);
	}

	public int deleteByExample(Role2MenuExample example) {

		return role2MenuMapper.deleteByExample(example);
	}

	public int deleteByPrimaryKey(Role2MenuKey key) {

		return role2MenuMapper.deleteByPrimaryKey(key);
	}

	public int insertSelective(Role2MenuKey record) {

		return role2MenuMapper.insertSelective(record);
	}

	public List<Role2MenuKey> selectByExample(Role2MenuExample example) {

		return role2MenuMapper.selectByExample(example);
	}
	
	public void insertBatch(List<Role2MenuKey> role2MenuKeys){
		 role2MenuMapper.insertBatch(role2MenuKeys);
	}

}
